package com.example.mybatisplusdemo.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplusdemo.model.domain.User;
import com.example.mybatisplusdemo.model.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2025-06-17
 */
public interface UserMapper extends BaseMapper<User> {

    User selectByIdMy();

    List<User> mySelectList();

    User selectByIdMy2(@Param("id") int i);

    List<User> selectByMy3(Page<User> page, LambdaQueryWrapper<User> lambdaQueryWrapper);


    UserVO selectwithOrder(@Param("i") int i);

    List<User> selectListMy(@Param("user") User user);

    void deleteByIdMy(@Param("list") List<Long> list);

    void insertMy(@Param("list") List<Long> list);
}
